package net.oschina.esb.util;

/**
 * @author Arvin
 * @time 2017/12/3 15:07
 */
public class PathUtil {

    /**
     * 合理化路径， 将 \\ 转成 /
     *
     * @param path 路径
     * @return
     */
    public static String normalizePath(String path) {
        if (null != path) {
            return path.replaceAll("[/\\\\]+", "/");
        }
        return null;
    }
}
